package com.community.common.pojo.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 页面菜单表
 * </p>
 *
 * @author superman
 * @since 2020-08-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_menu")
public class Menu implements Serializable {

    private static final long serialVersionUID = 7626345114303981229L;
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("menuName")
    private String menuName;

    @TableField("menuUrl")
    private String menuUrl;

    @TableField("parentId")
    private String parentId;

    private boolean open;

    private List<Menu> childMenus;


}
